package cn.easyar.samples.helloarqrcode.adpter;

import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;
import cn.easyar.samples.helloarqrcode.R;

/**
 * Created by sy on 2018/11/26.
 */

public class RoadAdapter extends BaseQuickAdapter<String,RoadAdapter.ViewHolder> {


    public RoadAdapter(@Nullable List<String> data) {
        super(R.layout.item_road, data);
    }

    @Override
    protected void convert(ViewHolder helper, String item) {
        helper.tvItemRoad.setText(item);
    }

    class ViewHolder extends BaseViewHolder {
        @BindView(R.id.tv_item_road)
        TextView tvItemRoad;
        public ViewHolder(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }
    }
}
